home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / include / linux / string_helpers.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  380 b   |  17 lines

  1. #ifndef _LINUX_STRING_HELPERS_H_
  2. #define _LINUX_STRING_HELPERS_H_
  3.  
  4. #include <linux/types.h>
  5.  
  6. /* Descriptions of the types of units to
  7.  * print in */
  8. enum string_size_units {
  9.     STRING_UNITS_10,    /* use powers of 10^3 (standard SI) */
  10.     STRING_UNITS_2,        /* use binary powers of 2^10 */
  11. };
  12.  
  13. int string_get_size(u64 size, enum string_size_units units,
  14.             char *buf, int len);
  15.  
  16. #endif
  17.